package com.example.demo;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import com.tencent.smtt.sdk.WebView;

public class NewsDetailActivity extends AppCompatActivity {
    private WebView news_web;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_news_detail);

        news_web=findViewById(R.id.news_web);

        String url=getIntent().getStringExtra("URL");
        String title=getIntent().getStringExtra("TITLE");
        setTitle(title);
        news_web.loadUrl(url);
    }
}
